home *** CD-ROM | disk | FTP | other *** search
Makefile | 1999-07-24 | 1.3 KB | 49 lines |
- OBJECTS=__nocommandline.o __stdiowin.o
- BOBJECTS=__nocommandline.bo __stdiowin.bo
- OPTIONS=-I ../headers -O3 -Wall
- BOPTIONS=$(OPTIONS) -fbaserel -msmall-code
- REDEF=-D _DOSBase=___DOSBase \
- -D _UtilityBase=___UtilityBase \
- -D _MathIeeeSingBasBase=___MathIeeeSingBasBase \
- -D _MathIeeeSingTransBase=___MathIeeeSingTransBase \
- -D _MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
- -D _MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
- -D _LocaleBase=___LocaleBase
- PATTERN="*"
-
- #Use private library bases to avoid naming collisions
- %.o: %.c
- gcc $(OPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
- gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
- gcc $*2.S -c -o $*.o
- -rm $*.S $*2.S
- -if test ! -s $*.err; then rm $*.err; fi
-
- %.bo: %.c
- gcc $(BOPTIONS) -S $*.c -o $*.S 2>&1|tee $*.err
- gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
- gcc $*2.S -c -o $*.bo
- -rm $*.S $*2.S
- -if test ! -s $*.err; then rm $*.err; fi
-
- all: libnixmain.a blibnixmain.a
-
- clean:
- -rm *.o *.bo *.err
-
- veryclean: clean
- -rm libnixmain.a blibnixmain.a
-
- libnixmain.a: $(OBJECTS) makefile
- -rm libnixmain.a
- ar -q libnixmain.a $(OBJECTS)
- ranlib libnixmain.a
-
- blibnixmain.a: $(BOBJECTS) makefile
- -rm blibnixmain.a
- ar -q blibnixmain.a $(BOBJECTS)
- ranlib blibnixmain.a
-
- .SUFFIXES:
- .SUFFIXES: .o .bo
-